#include <bits/stdc++.h>
using namespace std;
long long n;
long long Pow(long long a, long long b, long long c)
{
  	long long ans = 1, base = a;
  	while(b)
  	{
    	if(b & 1)
    		ans = ans * base % c;
    	b = b >> 1;
    	base = base * base % c;
    }
    return ans;
}

int main()
{
	cin >> n;
  	cout << (26ll * Pow(25ll, n - 1, 998244353ll)) % 998244353ll;
	return 0;
}